(global.webpackJsonp = global.webpackJsonp || []).push([ [ "wjyk_recycle/pages/address/address" ], {
    "17c3": function(e, n, t) {
        (function(e) {
            function n(e) {
                return e && e.__esModule ? e : {
                    default: e
                };
            }
            t("8163"), n(t("66fd")), e(n(t("d1cf")).default);
        }).call(this, t("543d").createPage);
    },
    "4a3f": function(e, n, t) {},
    "6ab8": function(e, o, u) {
        (function(a) {
            Object.defineProperty(o, "__esModule", {
                value: !0
            }), o.default = void 0;
            var e, r = (e = u("4795")) && e.__esModule ? e : {
                default: e
            };
            function s(e, n, t, o, a, r, u) {
                try {
                    var c = e[r](u), s = c.value;
                } catch (e) {
                    return t(e), 0;
                }
                c.done ? n(s) : Promise.resolve(s).then(o, a);
            }
            function n(c) {
                return function() {
                    var e = this, u = arguments;
                    return new Promise(function(n, t) {
                        var o = c.apply(e, u);
                        function a(e) {
                            s(o, n, t, a, r, "next", e);
                        }
                        function r(e) {
                            s(o, n, t, a, r, "throw", e);
                        }
                        a(void 0);
                    });
                };
            }
            var t = {
                data: function() {
                    return {
                        addresss: [],
                        name: ""
                    };
                },
                onShow: function() {
                    this.queryAdd(), this.name = a.getStorageSync("addressName");
                },
                onLoad: function(e) {},
                methods: {
                    selectAddress: function(e) {
                        "my" != this.name && (console.log("下单进来"), this.setDefault(e), a.navigateBack());
                    },
                    getAddress: function() {
                        a.chooseAddress({
                            success: function(e) {
                                console.log("res", e), console.log(e.userName), console.log(e.postalCode), console.log(e.provinceName), 
                                console.log(e.cityName), console.log(e.countyName), console.log(e.detailInfo), console.log(e.nationalCode), 
                                console.log(e.telNumber);
                            }
                        });
                    },
                    setDefault: function(t) {
                        var o = this;
                        return n(r.default.mark(function e() {
                            var n;
                            return r.default.wrap(function(e) {
                                for (;;) switch (e.prev = e.next) {
                                  case 0:
                                    return e.next = 2, o.$http({
                                        url: o.$api.setDefault,
                                        data: {
                                            id: t,
                                            uid: a.getStorageSync("uid")
                                        }
                                    });

                                  case 2:
                                    0 == (n = e.sent).errno && console.log("result", n);

                                  case 4:
                                  case "end":
                                    return e.stop();
                                }
                            }, e);
                        }))();
                    },
                    add: function(e) {
                        a.navigateTo({
                            url: "../address-detail/address-detail?addId=" + e
                        });
                    },
                    queryAdd: function() {
                        var t = this;
                        return n(r.default.mark(function e() {
                            var n;
                            return r.default.wrap(function(e) {
                                for (;;) switch (e.prev = e.next) {
                                  case 0:
                                    return e.next = 2, t.$http({
                                        url: t.$api.address,
                                        data: {
                                            uid: a.getStorageSync("uid")
                                        }
                                    });

                                  case 2:
                                    0 == (n = e.sent).errno && (console.log("result", n), t.addresss = n.data);

                                  case 4:
                                  case "end":
                                    return e.stop();
                                }
                            }, e);
                        }))();
                    }
                }
            };
            o.default = t;
        }).call(this, u("543d").default);
    },
    "6e34": function(e, n, t) {
        t.r(n);
        var o, a = t("6ab8"), r = t.n(a);
        for (o in a) "default" !== o && function(e) {
            t.d(n, e, function() {
                return a[e];
            });
        }(o);
        n.default = r.a;
    },
    "9a40": function(e, n, t) {
        var o = t("4a3f");
        t.n(o).a;
    },
    b368: function(e, n, t) {
        function o() {
            this.$createElement, this._self._c;
        }
        var a = [];
        t.d(n, "b", function() {
            return o;
        }), t.d(n, "c", function() {
            return a;
        }), t.d(n, "a", function() {});
    },
    d1cf: function(e, n, t) {
        t.r(n);
        var o, a = t("b368"), r = t("6e34");
        for (o in r) "default" !== o && function(e) {
            t.d(n, e, function() {
                return r[e];
            });
        }(o);
        t("9a40");
        var u = t("f0c5"), a = Object(u.a)(r.default, a.b, a.c, !1, null, null, null, !1, a.a, void 0);
        n.default = a.exports;
    }
}, [ [ "17c3", "common/runtime", "common/vendor" ] ] ]);